<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>登录页</title>
    <style>
        .error{color: red}
    </style>
</head>
<body>
<h1>Shiro登录页</h1>
<form id="loginForm" action="/doLogin" method="post">
    <p th:text="${msg}" class="error"></p>
    <input type="text" name="username" placeholder="输入用户名"/>
    <input type="password" name="password" placeholder="输入密码"/>
    <button type="submit">登录</button>
</form>
</body>
</html>